package com.ahwei.user.entity;

import com.ahwei.common.mybatis.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ahwei
 * @since 2022-05-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("shop_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String telephone;

    /**
     * 像片
     */
    private String photo;

    /**
     * 生日
     */
    private LocalDateTime birthday;

    /**
     * 是否删除（0-正常，1-删除）
     */
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
